package com.isunland.managesystem.ui;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import com.isunland.managesystem.R;
import com.isunland.managesystem.base.BasePagerActivity;
import com.isunland.managesystem.entity.CustomerProblemBack;

/**
 * Created by Lenovo on 2017/3/1.
 */
public class CustomerProblemBackDetailActivirty extends BasePagerActivity {

  private CustomerProblemBack content;

  @Override protected void onCreate(Bundle arg0) {
    content = (CustomerProblemBack) getIntent().getSerializableExtra(
        CustomerProblemBackDetailFragment.EXTRA_CONTENT);
    super.onCreate(arg0);
  }

  @Override protected Fragment createFragmentOne() {
    return CustomerProblemBackDetailFragment.newInstance(content);
  }

  @Override protected Fragment createFragmentTwo() {
    return CustomerProblemReplyListFragment.newInstance(content.getId());
  }

  @Override protected int[] createTitle() {
    return new int[] { R.string.problemFeedBack, R.string.reply_list };
  }
}
